package com.eedi.framework.permission.controller.org.vo.menu;

import com.eedi.framework.permission.enums.OrgMenuTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "经营界面 - 菜单精简信息 Response VO")
@Data
public class OrgMenuSimpleResp {

    @Schema(description = "菜单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private String orgMenuId;

    @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "永聚长青")
    private String orgMenuName;

    @Schema(description = "父菜单 ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    private String parentOrgMenuId;

    @Schema(description = "类型，参见 MenuTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private OrgMenuTypeEnum orgMenuType;
    /**
     * 显示顺序
     */
    @Schema(description = "现实顺序")
    private Integer orgMenuSort;

    /**
     * 路由地址
     *
     * 如果 path 为 http(s) 时，则它是外链
     */
    @Schema(description = "路由地址")
    private String orgMenuPath;

    @Schema(description = "子菜单")
    private List<OrgMenuSimpleResp> children;

}
